<?

	$usr = $this->usr;
	global $usr_groups, $usr_data;
		
	$Tlb = Toolbar();
	
	$Tlb->option('Go To')->option('Users')->toFunction('goto("../users");');
	$Tlb->option('Go To')->option('Groups')->toFunction('goto("../groups");');
	$Tlb->option('Go To')->option('Domains')->toFunction('goto("../domains");');

	$usr_groups = get_groups($usr->groups(), false);
	unset($usr_groups[$usr->grp]);
	$usr_data = $usr->data();
	foreach(array('can_script', 'can_apache', 'can_symlink') as $p) $usr_data->$p = $usr->get($p);
	
	
	$this->args->icon = $usr->class.'.png';
	$this->args->title = "Managing settings for ".$usr->name.' ('.$usr->email.')';

	$Tlb = Toolbar();
	$Tlb->option('Go To')->option('Users')->toFunction('goTo("../users");');
	$Tlb->option('Go To')->option('Groups')->toFunction('goTo("../groups");');
	$Tlb->option('Go To')->option('Domains')->toFunction('goTo("../domains");');
	
	
?>